''' <summary>
''' Contains only Sub Main used to start the stand-alone client application
''' </summary>
Friend Module modWRDB

    Friend MainWRDB As WRDB.Lib.clsWRDB

    ''' <summary>
    ''' Instantiates clsWRDB and shows the main client form
    ''' </summary>
    Sub Main()

        Try

            Application.EnableVisualStyles()

#If Not Debug Then
        'AddHandler Application.ThreadException, AddressOf OnThreadException
#End If
            MainWRDB = New WRDB.Lib.clsWRDB
            '3/1/10 disable splash screen; only takes 3 sec to start on slow machine (splash visible for <1sec) and screws of visibility of main form
            'MainWRDB.ShowSplashScreen()
            MainWRDB.ShowMainForm()
        Catch ex As Exception
            MessageBox.Show("Sorry, but an unhandled error has occurred during startup: " & ex.ToString)
        End Try
    End Sub

End Module
